<br />
&nbsp;&nbsp;<a href="<?php echo($this->serverUrl("/Administrator/adduser")); ?>"><input type="button" value="Добавить пользователя" /></a>
<br />
<br />
<table id="users">
    <thead>
	<th></th>
	<th></th>
	<th>id</th>
	<th>Логин</th>
	<th>Имя</th>
	<th>Телефон</th>
	<th>Эл.почта</th>
	<th>Роль</th>
    </thead>
    <tbody>
	<?php $trclass="s"; ?>
        <?php foreach($this->userslist as $user) : ?>
        <?php if ($trclass === "f") $trclass="s" ; else $trclass="f" ;  ?>
        <tr class="<?php echo $trclass ?>">
	    <td>
		<a href="<?php echo($this->serverUrl("/Administrator/edituser/id/".$this->escape($user->id))); ?>"><img title="Редактировать пользователя <?php echo $this->escape($user->login) ?>" src="<?php echo $this->serverUrl("/img/edit.png");?>" /></a>
	    </td>
	    <td>
		<a href="<?php echo($this->serverUrl("/Administrator/deluser/id/".$this->escape($user->id))); ?>"><img title="Удалить пользователя <?php echo $this->escape($user->login) ?>" src="<?php echo $this->serverUrl("/img/drop.png");?>" /></a>
	    </td>
	    <td>
		<?php echo $this->escape($user->id);?>
	    </td>
	    <td>
		<?php echo $this->escape($user->login);?>
	    </td>
	    <td>
		<?php echo $this->escape($user->name);?>
	    </td>
	    <td>
		<?php echo $this->escape($user->phone);?>
	    </td>
	    <td>
		<?php echo $this->escape($user->email);?>
	    </td>
	    <td>
		<?php echo $this->escape($user->role);?>
	    </td>
	</tr>
	<?php endforeach; ?>
    </tbody>
</table>
